package ace.cmp.rest.spring.data.jdbc.querydsl.test.core.dao.repository.impl;

import ace.cmp.rest.spring.data.jdbc.querydsl.test.core.dao.entity.Book;
import ace.cmp.rest.spring.data.jdbc.querydsl.test.core.dao.repository.BookRepository;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Component;

/**
 * @author caspar
 * @date 2023/8/22 17:04
 */
@Component
public class BookRepositoryImpl implements BookRepository {
  private final List<Book> allBooks = new ArrayList<>();

  @Override
  public void insert(List<Book> books) {
    allBooks.addAll(books);
  }
}
